package com.tankgame;

import com.tankgame.panel.GamePanel;
import com.tankgame.server.TankClient;
import com.tankgame.server.TankServer;
import com.tankgame.utils.Constants;

import javax.swing.*;

public class Main extends JFrame {
    GamePanel gamePanel = null;

    public static void main(String[] args) {
        Main main = new Main();
    }

    public Main() {
        gamePanel = GamePanel.GetInstance();
        this.add(gamePanel);
        this.setSize(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);
        this.addKeyListener(gamePanel);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);

    }
}
